package com.supersonic.backend.model;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;

@Entity
public class LogisticsAPIKey extends BaseModel{

	@ManyToOne(cascade = CascadeType.ALL,fetch = FetchType.LAZY)
	private API api;

	@ManyToOne(cascade = CascadeType.ALL,fetch = FetchType.LAZY)
	private Logistics logistics;

	private String apiKey;

	private String description;

	/**
	 * @return the api
	 */
	public API getApi() {
		return api;
	}

	/**
	 * @param api the api to set
	 */
	public void setApi(API api) {
		this.api = api;
	}

	/**
	 * @return the logistics
	 */
	public Logistics getLogistics() {
		return logistics;
	}

	/**
	 * @param logistics the logistics to set
	 */
	public void setLogistics(Logistics logistics) {
		this.logistics = logistics;
	}

	/**
	 * @return the key
	 */
	public String getKey() {
		return apiKey;
	}

	/**
	 * @param key the key to set
	 */
	public void setKey(String key) {
		this.apiKey = key;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

}
